Skip to content

Conversation

@chkuang-g
Copy link
Contributor

Fix the racy callback test which causes test failure on Windows platform
https://github.com/firebase/firebase-cpp-sdk/runs/846731160

ThreadedCallbackValue1Ordered test was designed racy because
RemoveCallback() can be called before the callback to-be-removed
is added.

Change the test so that the to-be-removed callback is added before
removal.
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@chkuang-g chkuang-g changed the base branch from master to dev July 17, 2020 05:22
@chkuang-g
Copy link
Contributor Author

@googlebot I fixed it.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@vimanyu
Copy link
Contributor

vimanyu commented Jul 20, 2020

I merged Shawn's changes into my local branch and ran the Github workflows twice to test this and I didn't see this error in the 2 runs.

@chkuang-g
Copy link
Contributor Author

I ran 10000 times using msvc framework and did not see any crash :)

@chkuang-g chkuang-g merged commit d5bd5e5 into dev Jul 21, 2020
@chkuang-g chkuang-g deleted the feature/chk-fix-callback-test branch July 21, 2020 18:48
@firebase firebase locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants